home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.cs.arizona.edu
/
ftp.cs.arizona.edu.tar
/
ftp.cs.arizona.edu
/
icon
/
newsgrp
/
group97a.txt
/
000020_icon-group-sender _Wed Jan 22 21:17:41 1997.msg
< prev
next >
Wrap
Internet Message Format
|
2000-09-20
|
2KB
Received: by cheltenham.cs.arizona.edu; Thu, 23 Jan 1997 09:24:29 MST
X-Authentication-Warning: hill.ucr.edu: joan owned process doing -bs
Date: Wed, 22 Jan 1997 21:17:41 -0800 (PST)
From: Junrong Yuan <joan@cs.ucr.edu>
X-Sender: joan@hill.ucr.edu
Reply-To: Junrong Yuan <joan@cs.ucr.edu>
To: icon-group@cs.arizona.edu
Subject: Icon Compiling
Message-Id: <Pine.LNX.3.95.970122211340.14809A-100000@hill.ucr.edu>
Mime-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Errors-To: icon-group-errors@cs.arizona.edu
Status: RO
Content-Length: 1775
Dear Sirs
I got an interesting problem when trying to compile the following
short Icon program:
**
procedure main()
L := [ 1, 2, 3 ]; # Set L to a list of 3 small integers
Change_All ( L ); # This procedure does not affect L
every write ( ! L ); # Display the values of L
Change_One ( L ); # This procedure changes the first element of
L
every write ( ! L ); # Display the values of L
end
procedure Change_All ( foo ) # This does not affect the caller's
foo...
foo := 86; # ...because we are not changing...
end # ...a PART of an aggregate
procedure Change_One ( foo ) # This procedure affects the caller's
foo...
foo[1] := 99; # ...because we are changing...
end # ...a PART of an aggregate
**
When I use icnt -x, the program runs correctly and ouput right
results, as the following:
--
1052 > icont test -x
Translating:
test.icn:
main
Change_All
Change_One
No errors
Linking:
Executing:
1
2
3
99
2
3
hill: /home/csgrads/joan/Class/CS181/ICON/learning
while if I try the other way around, first compile it and then
execute, it won't give out any output at all! See the following:
--
1053 > test
hill: /home/csgrads/joan/Class/CS181/ICON/learning
--
I am not sure the reason about this. Am I missing something? I am
looking forward to hearing from you.
THank you very much!
Joan
--
Joan Yuan |VOICE : (909)787-2953
Dept. Of Computer Science |FAX : (909)787-4643
University Of California |WWW : http://www.cs.ucr.edu/~joan/
Riverside, CA 92521-0304 |EMAIL : joan@cs.ucr.edu